﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RKMSikraKulingram
{
    public partial class PersonDetailsPostForm : Form
    {
        private Data.PersonDetailsPostCollection _personDetailsPostCollection;

        public PersonDetailsPostForm()
        {
            InitializeComponent();
            _personDetailsPostCollection = new RKMSikraKulingram.Data.PersonDetailsPostCollection();
        }

        private void PersonDetailsPostForm_Load(object sender, EventArgs e)
        {
            this.Owner.Enabled = false;
            this.PersonDetailsPostBindingSource.DataSource = _personDetailsPostCollection.PersonDetailsPostList;
            //this.PersonDetailsPostBindingSource.
            this.reportViewerPersonDetailsPost.RefreshReport();
        }

        private void reportViewer1_Load(object sender, EventArgs e)
        {

        }

        void PersonDetailsPostForm_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
        {
            this.Owner.Enabled = true;
        }
    }
}
